/**
 * Created by leanne on 7/18/14.
 */
public class fizzbuzz {
    public static void main(String args[]) {
        for(int i = 1; i <= 100; i++) {
            // If there is no remainder when value is divided, it is divisible
            if((i % 3 == 0) || (i % 5 == 0)) {
                String lineToPrint = "";
                // If divisible by three
                if (i % 3 == 0) {
                    lineToPrint += "Fizz";
                }
                // If divisible by five
                if (i % 5 == 0) {
                    lineToPrint += "Buzz";
                }
                System.out.println(lineToPrint);
            } else {
                System.out.println(i);
            }
        }
    }
}
